<?php defined('SYSPATH') or die('No direct script access.');
 
class Controller_Error extends Controller_ClientTemplate {
 
    public function action_404()
    {
        $this->response->status(404);
        
        $this->template->title = 'Ошибка 404'; 
        
        $error_content = View::factory('error/404')->render();
        $this->template->content = View::factory('content')
                                        ->set('title', 'Ошибка 404')
                                        ->set('content', $error_content);
    }
}